<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 14:17
 */

namespace util\validate\rules;

/**
 * 验证值只能是字母
 * Class Alpha
 * @package validate\rules
 */
class Alpha extends BaseRule
{

    public function verify()
    {
        $match = '/^[a-zA-Z]+$/';

        return preg_match($match, $this->value);
    }
}